package com.dynamic.mybatis.bootstrap.handler;

import com.dynamic.mybatis.core.intercept.DynamicMappedStatementHandler;
import com.dynamic.mybatis.core.intercept.DynamicSqlSessionHandler;
import com.dynamic.mybatis.core.metadata.DynamicMappedStatement;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author xs
 * @Date 2023/5/23 13:28
 */
@Component
public class MyMappedStatementHandler implements DynamicMappedStatementHandler {


    @Override
    public void before(OPERATE operate, DynamicMappedStatement dms) {
        System.err.println("before mappedStatement handle.   " + dms.getId());
    }

    @Override
    public void after(OPERATE operate, DynamicMappedStatement dms) {
        System.err.println("after mappedStatement handle.    " + dms.getId());
    }
}